import request from '@/utils/request'

export function getList(data) {
  const params = new URLSearchParams(data).toString();
  return request({
    url: `/house/api/feature/getList?${params}`,
    method: 'get',
  })
}

export function getFeatureList(data) {
  const params = new URLSearchParams(data).toString();
  return request({
    url: `/house/api/feature/getFeatureList?${params}`,
    method: 'get',
  })
}

export function doEdit(data) {
  return request({
    url: '/house/api/feature/add',
    method: 'post',
    data,
  })
}

export function doDelete(data) {
  return request({
    url: '/userManagement/doDelete',
    method: 'post',
    data,
  })
}
